﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SIS.GUI
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
			this._dgvStudents.AutoGenerateColumns = false;
			this._dgvStudents.DataSource = SIS.Business.Student.GetStudents();
		}

		private void _btnTest_Click(object sender, EventArgs e)
		{
			try
			{
				//SIS.Business.Student student = new SIS.Business.Student();
				//student.ID = "1001";
				//student.Name = "hieunv";
				//student.Insert();
				SIS.Business.Student student = SIS.Business.Student.GetStudent("1001");
				student.Delete();
			}
			catch (Exception exc)
			{
				MessageBox.Show(exc.StackTrace);
			}
			
		}
	}
}
